home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / AmigaSystem / AmiStart / AmiStart.install < prev    next >
Encoding:
Text File  |  2002-10-27  |  7.6 KB  |  306 lines

  1. ;AmiStart Install Script V0.60
  2.  
  3. (SET WelcomeToAmiStart "Welcome to the AmiStart installation...you should first start AmiStart without installing it to see if you like it")
  4. (SET EndMessage "please read the documentation especially the History and the Usage/ToolTypes section coz this install script only enables some options of AmiStart")
  5. (SET newPrefs 0)
  6. (SET newIcon 0)
  7. (SET newGraphics 0)
  8.  
  9. (SET @default-dest "clips:")
  10.  
  11. (MESSAGE WelcomeToAmiStart)
  12.  
  13. (SET @default-dest
  14.     (ASKDIR (PROMPT "Select a destination for the executable: \n(no drawer will be created)")
  15.         (HELP "this is the path for the AmiStart executable, nolmaly SYS:WbStartup")
  16.         (DEFAULT @default-dest)))
  17.  
  18. (SET destIcon (TACKON @default-dest "AmiStart.info"))
  19.  
  20. (COPYFILES (SOURCE "AmiStart") (DEST @default-dest))
  21.  
  22. (IF (EXISTS destIcon)
  23.     (
  24.         (IF (ASKBOOL
  25.                 (PROMPT "do you want to overwrite old AmiStart icon")
  26.                 (HELP "this could overwrite some TOOLTYPES, normaly choose NO but this will leave all ToolTypes as they are and will not create any new.\nI recommend to choose yes")
  27.             )
  28.             (
  29.                 (SET newIcon 1)
  30.                 (COPYFILES
  31.                     (SOURCE "AmiStart.info")
  32.                     (DEST @DEFAULT-DEST)
  33.                 )
  34.             )
  35.         )
  36.     )
  37.     (
  38.         (SET newIcon 1)
  39.         (COPYFILES
  40.             (SOURCE "AmiStart.info")
  41.             (DEST @DEFAULT-DEST)
  42.         )
  43.     )
  44. )
  45.  
  46. (SET @prefs-dest "")
  47.  
  48. (IF (> newIcon 0)
  49.     (IF (ASKBOOL
  50.             (PROMPT "do you want to install a default prefs file \n(notice: see HELP)")
  51.             (HELP "you can use your old, but you must use one\nthis must be done by the first installation\nfurther installations have already configured prefs files")
  52.         )
  53.         (
  54.             (SET @prefs-dest
  55.                 (ASKDIR
  56.                     (PROMPT "Select a destination for the (default) prefs file:\n(no drawer will be created)")
  57.                     (HELP "this ist the path for the AmiStart default prefs file, nolmaly SYS:WbStartup")
  58.                     (DEFAULT @default-dest)
  59.                 )
  60.             )
  61.             (COPYFILES (SOURCE "sm.prefs") (DEST @prefs-dest))
  62.             (SET newPrefs 1)
  63.         )
  64.     )
  65. )
  66.  
  67. (SET @icon-dest "")
  68.  
  69. (IF (ASKBOOL
  70.         (PROMPT "do you want to install a default graphics package")
  71.         (HELP "this are item-icons/logos for AmiStart, skip if you have already installed one package")
  72.     )
  73.     (
  74.         (SET @icon-dest
  75.             (ASKDIR
  76.                 (PROMPT "Select a destination for the graphical data:\n(two drawers named icons and textures will be created)")
  77.                 (HELP "this ist the path for the AmiStart icon files")
  78.                 (DEFAULT @default-dest)
  79.             )
  80.         )
  81.         (SET IconDir (TACKON @icon-dest "icons"))
  82.         (SET TextureDir (TACKON @icon-dest "textures"))
  83.         (MAKEDIR IconDir)
  84.         (MAKEDIR TextureDir)
  85.         (COPYFILES (SOURCE "Icons") (DEST IconDir) (ALL))
  86.         (COPYFILES (SOURCE "Textures") (DEST TextureDir) (ALL))
  87.         (SET newGraphics 1)
  88.     )
  89. )
  90.  
  91. (IF (ASKBOOL
  92.         (PROMPT "do you want to install example modules and tools\n(a directory named modules will be created)")
  93.         (HELP "see the documentation")
  94.     )
  95.     (
  96.         (SET ModulesDir (TACKON @icon-dest "modules"))
  97.         (MAKEDIR ModulesDir)
  98.         (COPYFILES (SOURCE "modules") (DEST ModulesDir) (ALL))
  99.     )
  100. )
  101.  
  102. (IF (ASKBOOL
  103.         (PROMPT "do you want to install alternative mui buttons for the setup windows\n(a directory named buttons will be created)")
  104.         (HELP "these images are only used by AmiStart")
  105.     )
  106.     (
  107.         (SET ButtonsDir (TACKON @icon-dest "buttons"))
  108.         (MAKEDIR ButtonsDir)
  109.         (COPYFILES (SOURCE "buttons") (DEST ButtonsDir) (ALL))
  110.     )
  111. )
  112.  
  113. (IF (ASKBOOL
  114.         (PROMPT "do you want use Shapes")
  115.         (HELP "Shapes are freeform Buttons on the Workbench")
  116.     )
  117.     (
  118.         (SET ShapesDir (TACKON @icon-dest "shapes"))
  119.         (MAKEDIR ShapesDir)
  120.         (IF (ASKBOOL
  121.                 (PROMPT "do you want install the example Voyager Control Shape")
  122.                 (HELP "you can control some functions of the Voyager Browser\nartwork by Martin Mason Merz")
  123.             )
  124.             (
  125.                 (COPYFILES (SOURCE "shapes/") (DEST ShapesDir) (ALL))
  126.             )
  127.         )
  128.  
  129.  
  130.     )
  131. )
  132.  
  133.  
  134. (SET ami_languages
  135. (ASKOPTIONS (PROMPT "select additional catalog files for AmiStart (english is buildin)")
  136.     (HELP "select additional languages for AmiStart...")
  137.     (CHOICES "deutsch")
  138.     (DEFAULT 0)
  139. ))
  140.  
  141. (if (> ami_languages 0) (
  142.    (set Cat_dir "locale:catalogs")
  143.    (if (bitand ami_languages 1)         ((set lang "deutsch") (copyfiles (source (tackon "Catalogs" lang)) (choices "AmiStart.catalog") (dest (tackon Cat_dir lang)))))
  144. ))
  145.  
  146.  
  147. (SET @doc-dest "")
  148.  
  149. (IF (ASKBOOL
  150.         (PROMPT "do you want to install the documentation")
  151.         (HELP "")
  152.     )
  153.     (
  154.         (SET @doc-dest
  155.             (ASKDIR
  156.                 (PROMPT "Select a destination for the documentation:\n(no drawer will be created)")
  157.                 (HELP "")
  158.                 (DEFAULT @default-dest)
  159.             )
  160.         )
  161.         (COPYFILES (SOURCE "AmiStart.guide") (INFOS) (DEST @doc-dest))
  162.     )
  163. )
  164.  
  165. (SET docpath (TACKON @doc-dest "AmiStart.guide"))
  166.  
  167. (SET AmiIcon (TACKON @default-dest "AmiStart"))
  168.  
  169. (IF (> newIcon 0)
  170.     (
  171.         (TOOLTYPE
  172.             (DEST AmiIcon)
  173.             (SETTOOLTYPE "HELPFILE" docpath)
  174.         )
  175.  
  176.         (IF (> newPrefs 0)
  177.             (
  178.                 (SET AmiPrefs (TACKON @prefs-dest "sm.prefs"))
  179.                 (TOOLTYPE
  180.                     (DEST AmiIcon)
  181.                     (SETTOOLTYPE "PREFS" AmiPrefs)
  182.                 )
  183.             )
  184.         )
  185.  
  186.         (IF (> newGraphics 0)
  187.             (
  188.                 (SET AmiStartIcon (TACKON IconDir "start"))
  189.                 (TOOLTYPE
  190.                     (DEST AmiIcon)
  191.                     (SETTOOLTYPE "STARTICON" AmiStartIcon)
  192.                     (SETTOOLTYPE "DATAPATH" @icon-dest)
  193.                 )
  194.             )
  195.         )
  196.  
  197.         (IF (ASKBOOL
  198.                 (PROMPT "do you want to use the AmiStart TaskBar")
  199.                 (HELP "")
  200.             )
  201.             (TOOLTYPE
  202.                 (DEST AmiIcon)
  203.                 (SETTOOLTYPE "TASKBAR" "")
  204.             )
  205.  
  206.  
  207.             (IF (ASKBOOL
  208.                     (PROMPT "do you want to make AmiStart invisible")
  209.                     (HELP "using this flag causes AmiStart to be invisible on the Workbench")
  210.                 )
  211.                 (
  212.                     (TOOLTYPE
  213.                         (DEST AmiIcon)
  214.                         (SETTOOLTYPE "SILENT" "")
  215.                     )
  216.                     (IF (ASKBOOL
  217.                             (PROMPT "do you want to make AmiStart to AutoPopup when\nmouse reaches leftmost bottom position")
  218.                             (HELP "using this flag causes AmiStart to visible when the mousepointer reaches the leftmost bottem position")
  219.                         )
  220.                         (TOOLTYPE
  221.                             (DEST AmiIcon)
  222.                             (SETTOOLTYPE "AUTOPOPUP" "")
  223.                         )
  224.                     )
  225.                 )
  226.                 (IF (ASKBOOL
  227.                         (PROMPT "do you want to make AmiStarts starticon transparent (Warning: see HELP)")
  228.                         (HELP "this has some restrictions, see docs")
  229.                     )
  230.                     (TOOLTYPE
  231.                         (DEST AmiIcon)
  232.                         (SETTOOLTYPE "TRANSPARENT" "")
  233.                     )
  234.                 )
  235.             )
  236.         )
  237.  
  238.         (SET @hotkey
  239.             (ASKSTRING
  240.                 (PROMPT "change the Hotkey to popup AmiStart")
  241.                 (HELP "pressing this hotkey popups/hides AmiStart\nfor example\nctrl p\nlalt ctrl a\nlamiga u")
  242.                 (DEFAULT "ctrl p")
  243.             )
  244.         )
  245.  
  246.         (TOOLTYPE
  247.             (DEST AmiIcon)
  248.             (SETTOOLTYPE "CX_HOTKEY" @hotkey)
  249.         )
  250.  
  251.         (IF (ASKBOOL
  252.             (PROMPT "do you want to use the old fast scaling algorithm for small items (see HELP)")
  253.             (HELP "fast scaling is a bit faster but the items are looking bad,\nfast scaling should be used on non true/hi color views")
  254.             )
  255.  
  256.             (TOOLTYPE
  257.                 (DEST AmiIcon)
  258.                 (SETTOOLTYPE "FASTSCALE" "")
  259.             )
  260.         )
  261.  
  262.         (IF (ASKBOOL
  263.             (PROMPT "do you want to use iconobject.library for loading icons (see HELP)")
  264.             (HELP "the iconobject.library is a part from the Scalos package\nfor example you can use newicons without the newicon patch")
  265.             )
  266.  
  267.             (TOOLTYPE
  268.                 (DEST AmiIcon)
  269.                 (SETTOOLTYPE "USEICONOBJECT" "")
  270.             )
  271.         )
  272.  
  273.         (IF (ASKBOOL
  274.                 (PROMPT "do you want to load icons late (see HELP)")
  275.                 (HELP "normaly AmiStart loads icons while bootup, using this flag icons will be loaded if you first open their window this allows AmiStart to boot faster and if not all Icons are used less memory is needed")
  276.             )
  277.  
  278.             (TOOLTYPE
  279.                 (DEST AmiIcon)
  280.                 (SETTOOLTYPE "LATELOAD" "")
  281.             )
  282.         )
  283.  
  284.         (IF (ASKBOOL
  285.                 (PROMPT "do you want to use a existing extern info-module (see HELP)")
  286.                 (HELP "you can use the standard info-requester or a seperate one\nfor example the information.module from the scalos package")
  287.             )
  288.             (
  289.                 (SET @info-module
  290.                     (ASKFILE
  291.                         (PROMPT "Select a info module")
  292.                         (HELP "")
  293.                         (DEFAULT "information.module")
  294.                     )
  295.                 )
  296.                 (TOOLTYPE
  297.                     (DEST AmiIcon)
  298.                     (SETTOOLTYPE "INFOMODULE" @info-module)
  299.                 )
  300.  
  301.             )
  302.         )
  303.     )
  304. )
  305.  
  306. (MESSAGE EndMessage)